/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package FourShTests;

import Rout.*;
import org.testng.annotations.*;

public class Shared4Arch {

    private GoBefore browser= new GoBefore();

    @BeforeMethod
    public void setUp() throws Exception {
        
        System.out.println("\n Run test: " + getClass().getSimpleName());
        browser.userAg = 1;
        browser.xpFilename = "//*[@id=\"fstickcontent\"]/div[7]/div/div/div[2]/h1";
        browser.curURL = "http://www.4shared.com/photo/jIP-_j8sce/Test_file.html";
        browser.lpurl = "software.maxiget.com";
        browser.repDir = getClass().getSimpleName();
    }

    @Test
    public void Arch() throws Exception {

        browser.cssButton = "#epom-e36fb74d38fcd323fd1ac5556836ff3e > a";
        browser.clButton = "trintiy-4shrecommend";
        
        browser.setUp();
        browser.testRun();
        browser.lpDetect();
        browser.verFilePresent();
        browser.verFilename();
    }

    @AfterMethod
    public void Down() throws Exception {
        browser.driver.quit();

    }

}
